package com.zzy.center.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author KAZU
 * @Date 2023/1/20 11:38
 * @Version 1.0
 */
@SuppressWarnings({"all"})
@Component
@ConfigurationProperties(prefix = "wx.open")
public class ConstantWxUtils implements InitializingBean {
	
	private String appId;
	private String appSecret;
	private String redirectUrl;
	
	public static String WX_OPEN_APP_ID;
	public static String WX_OPEN_APP_SECRET;
	public static String WX_OPEN_REDIRECT_URL;
	
	@Override
	public void afterPropertiesSet() throws Exception {
		WX_OPEN_APP_ID = appId;
		WX_OPEN_APP_SECRET = appSecret;
		WX_OPEN_REDIRECT_URL = redirectUrl;
	}
}
